﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace xxxy.Web.workInfo
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					int wid=(Convert.ToInt32(strid));
					ShowInfo(wid);
				}
			}
		}
		
	private void ShowInfo(int wid)
	{
		xxxy.BLL.workInfo bll=new xxxy.BLL.workInfo();
		xxxy.Model.workInfo model=bll.GetModel(wid);
		this.lblwid.Text=model.wid.ToString();
		this.lblwname.Text=model.wname.ToString();
		this.lblwcontent.Text=model.wcontent;
		this.lblwtime.Text=model.wtime.ToString();
		this.lblwstate.Text=model.wstate.ToString();
		this.lblwtype.Text=model.wtype.ToString();

	}


    }
}
